package com.wang.ymcc.feignclient;

import com.wang.lwm.result.JSONResult;
import com.wang.ymcc.CourseDoc;
import com.wang.ymcc.domain.Course;
import org.springframework.stereotype.Component;

@Component
public class SearchControllerFallBack implements EsSearchServerFeign {

    @Override
    public JSONResult save(CourseDoc doc) {
        return JSONResult.error("搜索服务异常");
    }

    @Override
    public JSONResult delete(Course course) {
        return JSONResult.error("删除服务异常");
    }
}
